package com.fastadmin.pojo;

import com.xphsc.easyjdbc.annotation.CreatedDate;
import com.xphsc.easyjdbc.annotation.ModifiedDate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.persistence.*;
import java.util.Date;


@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Builder(toBuilder = true)
@Table(name = "t_company")
@Entity
@ApiModel(description = "家政公司")
public class Company extends BaseEntity {

    //------------------------------------------------
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    protected Long id;
    @CreatedDate
    protected Date create_time;
    @ModifiedDate
    protected Date update_time;
    //------------------------------------------------
    @ApiModelProperty("名称") private String name; //名称
    @ApiModelProperty("图片") private String avatar; //名称
    @ApiModelProperty("手机") private String phone; //手机
    @ApiModelProperty("联系人") private String person; //联系人
    @ApiModelProperty("地址") private String addr; //地址
    @ApiModelProperty("签名") private String info; //地址
    @ApiModelProperty("图片展示") private String imgs; //地址

}
